projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6300655
)
shr-tag-video bug fix
author
Lars Magne Ingebrigtsen
<larsi@gnus.org>
Mon, 4 Jan 2016 22:03:16 +0000
(23:03 +0100)
committer
Lars Magne Ingebrigtsen
<larsi@gnus.org>
Mon, 4 Jan 2016 22:03:30 +0000
(23:03 +0100)
* shr.el (shr-tag-video): Protect against the `poster' being
empty.
lisp/net/shr.el
patch
|
blob
|
history
diff --git
a/lisp/net/shr.el
b/lisp/net/shr.el
index 979b0caeea59d1632019337a45fede48b6c737fb..0703171a436d5cbc584ef5421f09ff4646360bbc 100644
(file)
--- a/
lisp/net/shr.el
+++ b/
lisp/net/shr.el
@@
-1361,7
+1361,7
@@
The preference is a float determined from `shr-prefer-media-type'."
(start (point)))
(unless url
(setq url (car (shr--extract-best-source dom))))
- (if
image
+ (if
(> (length image) 0)
(shr-tag-img nil image)
(shr-insert " [video] "))
(shr-urlify start (shr-expand-url url))))